import request from '@/utils/request'

export function showInvestorGraph(params) {
  return request({
    url: '/bf/investmentPenetration/showInvestorGraph',
    method: 'get',
    params: params
  })
}

export function getProjectPenetration(data) {
  return request({
    url: '/bf/investmentPenetration/getProjectPenetration',
    method: 'post',
    data: data
  })
}

export function exportProjectPenetration(data) {
  return request({
    url: '/bf/investmentPenetration/exportProjectPenetration',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}

export function exportInvestorPenetration(param) {
  return request({
    url: '/bf/investmentPenetration/exportInvestorPenetration',
    method: 'get',
    params: param,
    responseType: 'blob'
  })
}
